package com.crowdfunding.dao;

import com.crowdfunding.bean.Member;
import com.crowdfunding.bean.Ticket;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface TicketMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Ticket record);

    Ticket selectByPrimaryKey(Integer id);

    List<Ticket> selectAll();

    int updateByPrimaryKey(Ticket record);

    Ticket selectByMemberId(Integer memberid);

    Integer saveTicket(Ticket ticket);

    void updatePstep(Ticket ticket);

    void updatePiidAndPstep(Ticket ticket);

    Member getByMemberByPiid(String processInstanceId);

    void updateStatusByMember(Integer memberid);
}